﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wangpanfengxiang.aspx.cs" Inherits="FPC.Offer.UI.SkyDrive.wangpanfengxiang" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8"/>
    <meta name="renderer" content="webkit|ie-comp|ie-stand"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link href="../H-ui/static/h-ui/css/H-ui.min.css" rel="stylesheet" />
    <link href="../H-ui/static/h-ui.admin/css/H-ui.admin.css" rel="stylesheet" />
    <link href="../H-ui/Lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" />
    <link href="../H-ui/static/h-ui.admin/skin/default/skin.css" rel="stylesheet" />
    <link href="../H-ui/static/h-ui.admin/css/style.css" rel="stylesheet" />
    <title>我的分享</title>
</head>
<body>
     <nav class="breadcrumb">
        <i class="Hui-iconfont">&#xe67f;</i> 首页
        <span class="c-gray en">&gt;</span>
        网盘
        <span class="c-gray en">&gt;</span>
        我的分享
        <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
    </nav>
    <div class="page-container">
       
        <div class="cl pd-5 bg-1 bk-gray mt-20">
            
            
        </div>
        <div class="mt-20">
            <table class="table table-border table-bordered table-hover table-bg table-sort">
                <thead>
                    <tr class="text-c">
                        <th width="25"><input type="checkbox" name="" value=""></th>
                        <th width="200">文件名称</th>
                        <th >路径</th>
                        <th width="200">日期</th>
                         <th width="200">密码</th>
                        <th width="100">操作</th>
                    </tr>
                </thead>
                <tbody id ="tr">
                 
                  
                </tbody>
       
            </table>
        </div>
    </div>
       <!--_footer 作为公共模版分离出去-->
    
    <script type="text/javascript" src="../H-ui/Lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="../H-ui/lib/layer/2.4/layer.js"></script>
    <script type="text/javascript" src="../H-ui/static/h-ui/js/H-ui.min.js"></script>
    <script type="text/javascript" src="../H-ui/static/h-ui.admin/js/H-ui.admin.js"></script>
    <!--/_footer 作为公共模版分离出去-->
    <!--请在下方写此页面业务相关的脚本-->
    <script type="text/javascript" src="../H-ui/jquery.validation/1.14.0/jquery.validate.js"></script>
    <script type="text/javascript" src="../H-ui/jquery.validation/1.14.0/validate-methods.js"></script>
    <script type="text/javascript" src="../H-ui//jquery.validation/1.14.0/messages_zh.js"></script>
    <script>
        //显示我的分享
        $(function () {

            $.ajax({

                type: "post",
                url: "../GeneralProcessor/SkyDriveHand/ShareShowHandler.ashx",
                data: {
                    Actioon: "<%=FPC.Offer.Common.EnumAction.Select %>",
                    name: "<%=Session[FPC.Offer.Common.SystemKeys.COOKIE_USER_UserID_REMEMBER]%>",

                },
                success: function (mes) {


                    var item = JSON.parse(mes);

                    var tr = "";
                    $(item).each(function (i, item) {


                        tr += " <tr class='text-c'><td></td><td class='text-l'>" + item.ShareName + "</td><td>" + item.ShareUrl + "</td><td>" + item.ShareDate + "</td><td>" + item.SharePwd + "</td><td class='f-14'><a title='删除' href='javascript:;' onclick='del(" + item.ShareId + ")' class='ml-5' style='text-decoration:none'><i class='Hui-iconfont'>&#xe6e2;</i></a></td></tr>"


                    })
                    $("#tr").append(tr);
                }
            })



        })




        function del(a) {


            $.ajax({
                type: "post",
                url: "/GeneralProcessor/SkyDriveHand/ShareShowHandler.ashx",
                data: {
                    Actioon: "<%=FPC.Offer.Common.EnumAction.Delete %>",
                    id: a,

                },
                success: function (mes) {
                    if (mes > 0) {
                        location.reload();
                    }
                    else {
                        alert("删除失败"); location.reload();

                    }


                }

            })



        }




    </script>




    <form id="form1" runat="server">
    <div>
    
    </div>
    </form>
</body>
</html>
